home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Turnbull China Bikeride
/
Turnbull China Bikeride - Disc 2.iso
/
STUTTGART
/
LANG
/
C
/
LIB
/
UNIXLIB37B
/
!UnixLib37
/
src
/
stdio
/
c
/
puts
< prev
next >
Wrap
Text File
|
1996-11-09
|
763b
|
36 lines
/****************************************************************************
*
* $Source: /unixb/home/unixlib/source/unixlib37/src/stdio/c/RCS/puts,v $
* $Date: 1996/04/19 21:32:42 $
* $Revision: 1.1 $
* $State: Rel $
* $Author: simon $
*
* $Log: puts,v $
* Revision 1.1 1996/04/19 21:32:42 simon
* Initial revision
*
***************************************************************************/
static const char rcs_id[] = "$Id: puts,v 1.1 1996/04/19 21:32:42 simon Rel $";
#include <stdio.h>
__STDIOLIB__
int
puts (register const char *s)
{
register FILE *f = stdout;
register int c = 0;
if (!s)
s = (const char *) __null;
while (c = *s++)
if ((c = putc (c, f)) < 0)
break;
return ((c < 0) ? c : putc ('\n', f));
}